import { loadPromptFromTemplate, generatePrompt } from '../loader.js';

interface ComprehensiveThinkSolutionParams {
  problemAnalysis: string;
  solutionTypes?: string[];
  searchStrategy?: string;
  resourceConstraints?: {
    time?: string;
    budget?: string;
    technical?: string;
  };
  memoryDir?: string;
}

export async function getComprehensiveThinkSolutionPrompt(params: ComprehensiveThinkSolutionParams): Promise<string> {
  const template = await loadPromptFromTemplate('comprehensiveThinkSolution/index.md');
  
  return generatePrompt(template, {
    problemAnalysis: params.problemAnalysis,
    solutionTypes: params.solutionTypes?.join(', ') || 'traditional, innovative',
    searchStrategy: params.searchStrategy || 'layered',
    resourceConstraints: JSON.stringify(params.resourceConstraints || {
      time: 'moderate',
      budget: 'moderate',
      technical: 'intermediate'
    }),
    memoryDir: params.memoryDir || ''
  });
}